

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>3. VideoTester.gstreamer — Video processing with GStreamer bindings &mdash; VideoTester 0.2 documentation</title>
    
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '0.2',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="shortcut icon" href="_static/VTfavicon.png"/>
    <link rel="top" title="VideoTester 0.2 documentation" href="index.html" />
    <link rel="up" title="Module Reference" href="modules.html" />
    <link rel="next" title="4. VideoTester.sniffer — Network sniffing and packet manipulation" href="sniffer.html" />
    <link rel="prev" title="2. VideoTester.core — Client and server base classes" href="core.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="sniffer.html" title="4. VideoTester.sniffer — Network sniffing and packet manipulation"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="core.html" title="2. VideoTester.core — Client and server base classes"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">VideoTester 0.2 documentation</a> &raquo;</li>
          <li><a href="modules.html" accesskey="U">Module Reference</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-VideoTester.gstreamer">
<span id="videotester-gstreamer-video-processing-with-gstreamer-bindings"></span><h1>3. <tt class="docutils literal"><span class="pre">VideoTester.gstreamer</span></tt> &#8212; Video processing with GStreamer bindings<a class="headerlink" href="#module-VideoTester.gstreamer" title="Permalink to this headline">¶</a></h1>
<dl class="class">
<dt id="VideoTester.gstreamer.RTSPclient">
<em class="property">class </em><tt class="descclassname">VideoTester.gstreamer.</tt><tt class="descname">RTSPclient</tt><big>(</big><em>conf</em>, <em>video</em><big>)</big><a class="headerlink" href="#VideoTester.gstreamer.RTSPclient" title="Permalink to this definition">¶</a></dt>
<dd><p>GStreamer RTSP client.</p>
<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPclient.conf">
<tt class="descname">conf</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPclient.conf" title="Permalink to this definition">¶</a></dt>
<dd><p>Dictionary of configuration options (see <a class="reference internal" href="core.html#VideoTester.core.Client.conf" title="VideoTester.core.Client.conf"><tt class="xref py py-attr docutils literal"><span class="pre">VideoTester.core.Client.conf</span></tt></a>).</p>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPclient.files">
<tt class="descname">files</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPclient.files" title="Permalink to this definition">¶</a></dt>
<dd><p>Dictionary of paths to the processed video files: <tt class="docutils literal"><span class="pre">{'original':[&lt;compressed&gt;,</span> <span class="pre">&lt;yuv&gt;],</span> <span class="pre">'coded':[&lt;compressed&gt;,</span> <span class="pre">&lt;yuv&gt;],</span> <span class="pre">'received':[&lt;compressed&gt;,</span> <span class="pre">&lt;yuv&gt;]}</span></tt>.</p>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPclient.loop">
<tt class="descname">loop</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPclient.loop" title="Permalink to this definition">¶</a></dt>
<dd><p>Gstreamer loop.</p>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPclient.pipeline">
<tt class="descname">pipeline</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPclient.pipeline" title="Permalink to this definition">¶</a></dt>
<dd><p>Gstreamer pipeline.</p>
</dd></dl>

<dl class="method">
<dt id="VideoTester.gstreamer.RTSPclient.receiver">
<tt class="descname">receiver</tt><big>(</big><big>)</big><a class="headerlink" href="#VideoTester.gstreamer.RTSPclient.receiver" title="Permalink to this definition">¶</a></dt>
<dd><p>Connect to the RTSP server and receive the selected video (see <a class="reference internal" href="#VideoTester.gstreamer.RTSPclient.video" title="VideoTester.gstreamer.RTSPclient.video"><tt class="xref py py-attr docutils literal"><span class="pre">video</span></tt></a>).</p>
</dd></dl>

<dl class="method">
<dt id="VideoTester.gstreamer.RTSPclient.reference">
<tt class="descname">reference</tt><big>(</big><big>)</big><a class="headerlink" href="#VideoTester.gstreamer.RTSPclient.reference" title="Permalink to this definition">¶</a></dt>
<dd><p>Make the reference videos.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Paths to video files (see <a class="reference internal" href="#VideoTester.gstreamer.RTSPclient.files" title="VideoTester.gstreamer.RTSPclient.files"><tt class="xref py py-attr docutils literal"><span class="pre">files</span></tt></a>) and video size (see <a class="reference internal" href="#VideoTester.gstreamer.RTSPclient.size" title="VideoTester.gstreamer.RTSPclient.size"><tt class="xref py py-attr docutils literal"><span class="pre">size</span></tt></a>).</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">tuple</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPclient.size">
<tt class="descname">size</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPclient.size" title="Permalink to this definition">¶</a></dt>
<dd><p>Video size: <tt class="docutils literal"><span class="pre">(width,</span> <span class="pre">height)</span></tt>.</p>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPclient.url">
<tt class="descname">url</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPclient.url" title="Permalink to this definition">¶</a></dt>
<dd><p>Selected video URL.</p>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPclient.video">
<tt class="descname">video</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPclient.video" title="Permalink to this definition">¶</a></dt>
<dd><p>Path to the selected video (see <a class="reference internal" href="core.html#VideoTester.core.Client.video" title="VideoTester.core.Client.video"><tt class="xref py py-attr docutils literal"><span class="pre">VideoTester.core.Client.video</span></tt></a>).</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="VideoTester.gstreamer.RTSPserver">
<em class="property">class </em><tt class="descclassname">VideoTester.gstreamer.</tt><tt class="descname">RTSPserver</tt><big>(</big><em>port</em>, <em>bitrate</em>, <em>framerate</em>, <em>path</em>, <em>videos</em><big>)</big><a class="headerlink" href="#VideoTester.gstreamer.RTSPserver" title="Permalink to this definition">¶</a></dt>
<dd><p>GStreamer RTSP server.</p>
<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPserver.bitrate">
<tt class="descname">bitrate</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPserver.bitrate" title="Permalink to this definition">¶</a></dt>
<dd><p>The bitrate (in kbps).</p>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPserver.factory">
<tt class="descname">factory</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPserver.factory" title="Permalink to this definition">¶</a></dt>
<dd><p>List of GStreamer RTSP factories.</p>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPserver.framerate">
<tt class="descname">framerate</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPserver.framerate" title="Permalink to this definition">¶</a></dt>
<dd><p>The framerate (in fps).</p>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPserver.loop">
<tt class="descname">loop</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPserver.loop" title="Permalink to this definition">¶</a></dt>
<dd><p>Gstreamer loop.</p>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPserver.path">
<tt class="descname">path</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPserver.path" title="Permalink to this definition">¶</a></dt>
<dd><p>Path to the video directory.</p>
</dd></dl>

<dl class="method">
<dt id="VideoTester.gstreamer.RTSPserver.run">
<tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#VideoTester.gstreamer.RTSPserver.run" title="Permalink to this definition">¶</a></dt>
<dd><p>Attach server and run the loop (see <a class="reference internal" href="#VideoTester.gstreamer.RTSPserver.loop" title="VideoTester.gstreamer.RTSPserver.loop"><tt class="xref py py-attr docutils literal"><span class="pre">loop</span></tt></a>).</p>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPserver.server">
<tt class="descname">server</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPserver.server" title="Permalink to this definition">¶</a></dt>
<dd><p>GStreamer RTSP server instance.</p>
</dd></dl>

<dl class="attribute">
<dt id="VideoTester.gstreamer.RTSPserver.videos">
<tt class="descname">videos</tt><em class="property"> = None</em><a class="headerlink" href="#VideoTester.gstreamer.RTSPserver.videos" title="Permalink to this definition">¶</a></dt>
<dd><p>List of available videos.</p>
</dd></dl>

</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="index.html">
              <img class="logo" src="_static/VT200x170.png" alt="Logo"/>
            </a></p>
  <h4>Previous topic</h4>
  <p class="topless"><a href="core.html"
                        title="previous chapter">2. <tt class="docutils literal docutils literal docutils literal"><span class="pre">VideoTester.core</span></tt> &#8212; Client and server base classes</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="sniffer.html"
                        title="next chapter">4. <tt class="docutils literal"><span class="pre">VideoTester.sniffer</span></tt> &#8212; Network sniffing and packet manipulation</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/gstreamer.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="sniffer.html" title="4. VideoTester.sniffer — Network sniffing and packet manipulation"
             >next</a> |</li>
        <li class="right" >
          <a href="core.html" title="2. VideoTester.core — Client and server base classes"
             >previous</a> |</li>
        <li><a href="index.html">VideoTester 0.2 documentation</a> &raquo;</li>
          <li><a href="modules.html" >Module Reference</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2013, Iñaki Úcar.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>